package com.miyuan.wm.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName RecordInOutEntity
 * @Description 货物出入库记录表
 */
@TableName("my_record_in_out")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RecordInOutEntity implements Serializable {

    @TableId(type = IdType.AUTO, value = "id")
    private int id; // 数据库Id

    @TableField(value = "type")
    private int type; // 出入库类型（0：出库；1：入库）

    @TableField(value = "supplier_id")
    private int supplierId; // 供应商Id

    @TableField(value = "customer_id")
    private int customerId; // 客户Id

    @TableField(value = "good_id")
    private int goodId; // 货物Id

    @TableField(value = "respository_id")
    private int respositoryId; // 仓库Id

    @TableField(value = "number")
    private int number; // 数量

    @TableField(value = "create_time")
    private Date createTime; // 时间

    @TableField(value = "user_id")
    private int userId; // 提交人Id

}
